<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
</head>
<script src="/addons/hc_step/template/js/jq.js"></script>
<style>
    .wv-lt-refresh{
        display: none;
    }
    #he-plugin-standard{
        width: 100%!important;
    }
  .aa{
      width: 90%;
      height: 2.5rem;
      overflow: hidden;
      font-size: 2rem;
      margin: 1rem auto;
  }
</style>
<body>
<div id="he-plugin-standard"></div>
<div class="aa">
    <marquee direction="left" scrolldelay="100" id="notice">
    </marquee>
</div>
<script>
    setRank();
    setInterval(function(){
        setRank();
    },60000);

    function setRank() {

        $.ajax({
            type: "POST",
            url: "http://test.18bang.cn/app/index.php?i=14&t=0&v=9.0.0&from=wxapp&c=entry&a=wxapp&do=Noticed&m=hc_step",
            dataType: "json",
            success: function(res){
                var daya=res.data.notice;
                let data = daya;
                var items = ''
                for (let i = 0; i < data.length; i++) {
                    items+=`${i+1}.`+data[i].title;
                }
                document.getElementById('notice').innerHTML=items;
            },
            error: function(xhr, type){
                console.log("数据出错")
            }
        });
    }
</script>
<script>
WIDGET = {
  "CONFIG": {
    "layout": "1",
    "width": "450",
    "height": "150",
    "background": "1",
    "dataColor": "FFFFFF",
    "key": "b244befcfdec47f188b6be897b0b7467"
  }
}
</script>
<script src="https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0"></script>
</body>
</html>
